<include file="Public/header" title="添加房源" />
<div id="page-wrapper">
    <form method="post" action="{:U('house/add')}"  enctype="multipart/form-data">

        <h2>基本信息</h2>
    <!-- 项目名称 -->
        <div class="form-group">
            <label>项目名称</label>
            <!-- <input type="text" name="project_name" placeholder="大华锦绣华城" class="form-control"  /> -->
            <select name="project_id" class="form-control">
                <foreach name="list" item="v">
                    <option value="{$v['id']}">{$v["name"]}</option>
                </foreach>
            </select>
        </div>
    <!-- 期号 -->
        <div class="form-group">
            <label>期号</label>
            <input type="text" name="issue" placeholder="3" class="form-control"  />
        </div>
    <!-- 楼牌信息 -->
        <div class="form-group">
            <label>楼牌信息</label>
            <input type="text" name="house_num" placeholder="5楼1单元201" class="form-control"  />
        </div>  
    <!-- 面积 -->
        <div class="form-group">
            <label>面积</label>
            <input type="text" name="square" placeholder="100" class="form-control"  />
        </div> 
    <!-- 朝向 -->
        <div class="form-group">
            <label>朝向</label>
            <input type="text" name="face" placeholder="南北走向" class="form-control"  />
        </div> 
    <!-- 户型介绍 -->
        <div class="form-group">
            <label>户型介绍</label>
            <input type="text" name="introduction" placeholder="厨卫不对门，户型方正，南北朝向" class="form-control"  />
        </div>
    <!-- 室、厅、卫、厨 -->
        <div class="form-group row">
            <label class="col-sm-1" style="max-width:50px;">室</label>
            <div class="col-sm-2">
                <input type="text" name="room" placeholder="3" class="form-control"  />            
            </div>
            <label class="col-sm-1" style="max-width:50px;">厅</label>
            <div class="col-sm-2">
                <input type="text" name="living" placeholder="2" class="form-control"  />            
            </div>
            <label class="col-sm-1" style="max-width:50px;">卫</label>
            <div class="col-sm-2">
                <input type="text" name="toilet" placeholder="1" class="form-control"  />            
            </div>
            <!-- <label class="col-sm-1" style="max-width:50px;">厨</label>
            <div class="col-sm-2">
                <input type="text" name="kitchen" placeholder="1" class="form-control"  />            
            </div> -->
        </div>
    <!-- 房屋类别 -->
        <div class="form-group row">
            <label class="col-sm-1">房屋类别</label>
            <div class="col-sm-11">
                <input type="radio" name="size_intro" value="精装" style="display:inline-block;margin-left:20px;" />精装
                <input type="radio" name="size_intro" value="简装" style="display:inline-block;margin-left:20px;" />简装
                <input type="radio" name="size_intro" value="毛坯" style="display:inline-block;margin-left:20px;" />毛坯                                     
            </div>
        </div> 
    <!-- 是否已售 -->
        <div class="form-group row">
            <label class="col-sm-1">是否已售</label>
            <div class="col-sm-11">
                <input type="radio" name="state" value="0" style="display:inline-block;margin-left:20px;" />已售
                <input type="radio" name="state" value="1" style="display:inline-block;margin-left:20px;" />在售
                <input type="radio" name="state" value="2" style="display:inline-block;margin-left:20px;" />未售                                      
            </div>
        </div> 
        <hr />

        <h2>常变更信息</h2>
    <!-- 特价开始时间 -->
        <div class="form-group">
            <label>特价开始时间</label>
            <input type="text" name="start_time" placeholder="2017-02-01" class="form-control"  />
        </div>
    <!-- 特价结束时间 -->
        <div class="form-group">
            <label>特价结束时间</label>
            <input type="text" name="end_time" placeholder="2017-02-22" class="form-control"  />
        </div>
    <!-- 打折数 -->
        <div class="form-group">
            <label>打折数</label>
            <input type="text" name="discount" placeholder="9" class="form-control"  />
        </div>
    <!-- 立减价格 -->
        <div class="form-group">
            <label>立减价格</label>
            <input type="text" name="reduce" placeholder="2.5" class="form-control"  />
        </div>
    <!-- 原价 -->
        <div class="form-group">
            <label>原价</label>
            <input type="text" name="price" placeholder="120" class="form-control"  />
        </div>
    <!-- 均价-->
        <div class="form-group">
            <label>均价</label>
            <input type="text" name="perprice" placeholder="12000" class="form-control"  />
        </div> 
    <!-- 推荐程度 -->
        <div class="form-group">
            <label>推荐程度</label>
            <input type="text" name="order" placeholder="3" class="form-control"  />
        </div>

    <!-- 房源图尺寸一 -->
        <div class="form-group">
            <label>房源多图集</label>
           <input type="file" name="pic[]" class="form-control" id="post-pic"  multiple="multiple" >
        </div>
		
		
    <!-- 房源图尺寸二 -->
        <div class="form-group">
            <label>房源图片一</label>
           <input type="file" name="pic1[]" class="form-control" id="post-pic" >
        </div>
		
		
    <!-- 房源图尺寸三-->
        <div class="form-group">
            <label>房源图片二</label>
           <input type="file" name="pic2[]" class="form-control" id="post-pic" >
        </div>
		
    <!-- 房源图尺寸四-->
        <div class="form-group">
            <label>房源图片三</label>
           <input type="file" name="pic3[]" class="form-control" id="post-pic" >
        </div>
    <!-- 按钮 -->
        <div>
            <input type="submit" class="btn btn-default btn-primary"/>
            <a class="btn btn-default btn-warning">重置</a>
        </div>
    </form>
</div>
<include file="Public/footer" />